home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15520 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: sun.rhbnc.ac.uk!hal!jim
  2. From: jim@hal (Jim Hu)
  3. Newsgroups: comp.lang.c
  4. Subject: [Q] What error could cause this problem.
  5. Date: 19 Apr 1996 12:08:13 GMT
  6. Organization: Royal Holloway, Univ of London
  7. Message-ID: <4l7vnd$9hq@sun.rhbnc.ac.uk>
  8. NNTP-Posting-Host: sun1.gl.rhbnc.ac.uk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi, there,
  12.  
  13.     I have written a very large program. The program uses 
  14. XVT portability library so I can use it on different system.
  15. I got the segmentation fault sometime when I run the program.
  16.  
  17. On SPARC, if I compiled it using SUN cc, the program crashed
  18. when I try to input data. The program also crashed in the debug
  19. mode using dbx. crash point was inside the xvt library.
  20.  
  21. Again on Sparc, If I compiled the program using gcc 2.7.2,
  22. the program crashed when I do some process on the input. Note
  23. crashed time was later than using Sun cc. The program run perfect
  24. fine under debug mode using gdb.
  25.  
  26. On IRIX 5.3, I used c compiler bought from SGI, the program run
  27. well without problem.
  28.  
  29.    I understand the problem might be related tp memory allocation.
  30. Apart from check code line after line, is there any program available
  31. to attack bugs related memory allocation.
  32.  
  33.  
  34. Jim Hu
  35.